<!doctype html>
<html lang="">
<head>
  <meta charset="utf-8">
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>kangai</title>

  <link rel="apple-touch-icon" href="apple-touch-icon.png">
  <!-- Place favicon.ico in the root directory -->

  <!-- build:css styles/vendor.css -->
  <!-- bower:css -->
  <!-- endbower -->
  <!-- endbuild -->

  <!-- build:css styles/main.css -->
  <link rel="stylesheet" href="lib/layui/css/layui.css">
  <link rel="stylesheet" href="styles/main.css">
  <!-- endbuild -->

</head>
<body class="layui-layout-body">

  <div class="layui-layout layui-layout-admin layui-layout_ka">
    <div class="layui-header">
      <ul class="h-menus">
        <li>
          <img src="./images/user.png" class="icon">
          <span id="h-user"></span>
        </li>
        <li id="btn-exit" class="btn-exit">
          <img src="./images/exit.png" class="icon">
          退出
        </li>
      </ul>
    </div>
    <div class="layui-side">
      <div class="bar-container layui-bg-green">
        <img id="logo" src="images/logo.png" class="logo">
        <div class="menus" id="menus">
          <a class="menu active" href="./index.html">
            <img src="images/menu-index.png" class="icon">
            <p>营养筛查</p>
          </a>
          <a class="menu" href="./nutritiveriskView.html">
            <img src="images/menu-nutritiveriskView.png" class="icon">
            <p>营养看板</p>
          </a>
          <a class="menu " href="./censusView.html">
            <img src="images/menu-censusView.png" class="icon">
            <p>统计查询</p>
          </a>
        </div>
      </div>
    </div>
    <div class="layui-body">
      <div class="layui-container-full">
        <div class="layui-row">
          <div class="layui-col-xs12 layui-form index-page">
            <div class="d-flex menu-bar">
              <div class="ks-group">
                <button class="layui-btn layui-btn-sm" id="btn-ks">科室</button>
                <select id="sxks"  lay-filter="sxks">
                </select>
              </div>
              <div class="sx-group">
                <div class="icon-box"><span class="icon icon-sx"></span></div>
                <button class="layui-btn layui-btn-sm" id="btn-ch">初筛</button>
                <button class="layui-btn layui-btn-sm" id="btn-fs">复筛</button>
              </div>
              <button class="layui-btn layui-btn-sm" id="btn-print"><span class="icon icon-dy"></span>打印</button>
              <button class="layui-btn layui-btn-sm" id="btn-fh"><span class="icon icon-fh"></span>复核</button>
              <button class="layui-btn layui-btn-sm" id="btn-hz"><span class="icon icon-fqhz"></span>发起营养会诊</button>
              <button class="layui-btn layui-btn-sm" id="btn-more"><span class="icon icon-gd"></span>更多</button>
            </div>
            <table id="tableContent" lay-filter="tableContent"></table>
            <table id="tablePage"></table>
          </div>
        </div>
      </div>
    </div>
    <div class="layui-footer text-center t-gray" id="copyright"></div>
  </div>


  <!-- build:js scripts/vendor.js -->
  <!-- bower:js -->
  <!-- endbower -->
  <!-- endbuild -->

  <script src="lib/layui/layui.js" charset="utf-8"></script>
  <script src="scripts/main.js"></script>

  <script src="scripts/jquery.min.js" charset="utf-8"></script>
  <script src="scripts/jquery.jqprint.js" charset="utf-8"></script>


  <script type="text/html" id="checkboxTpl">
    <label class="follow">
      <input type="checkbox" class="gzcheck" lay-skin="primary"  data_userno="{{d.userNo}}" {{ d.isFollow == 2 ? 'checked' : '' }}  >
      <span></span>
    </label>
  </script>

  <script type="text/javascript">

    $(function () {
      function printPage(obj) {
        $(obj).jqprint();
      }
      layui.use(['jquery', 'layer', 'form', 'table', 'element', 'laydate', 'laypage', 'layer', 'httpService', 'httpRouter', 'DateFormat', 'common'], function(){

        var table = layui.table,
          form = layui.form,
          element = layui.element,
          laydate = layui.laydate,
          DateFormat = layui.DateFormat,
          laypage = layui.laypage,
          layer = layui.layer,
          $ = layui.jquery,
          common = layui.common,
          http = layui.httpService,
          httpRouter = layui.httpRouter;

        var today = DateFormat.addDay(new Date())

        var params = {
          startdatetime:"",
          enddatetime:"",
          depNo:"",
          bedNo:"",
          userNo:"",
          reviewerNo:"",
          clinicianNo:"",
          inHospitalState:"",
          screenState:"",
          isRisk:"",
          reviewerResult:"",
          isFollow:""
        }
        var page = 1;
        var limit = 15;

        common.init();
        common.getMenus(0);


        var printAreaCount = 0;
        $.fn.printArea = function () {
          var ele = $(this);
          var idPrefix = "printArea_";
          removePrintArea(idPrefix + printAreaCount);
          printAreaCount++;
          var iframeId = idPrefix + printAreaCount;
          var iframeStyle = 'position:absolute;width:100%;height:100%;left:-100%;top:-100%; background: #fff';
          iframe = document.createElement('IFRAME');
          $(iframe).attr({
            style: iframeStyle,
            id: iframeId
          });
          document.body.appendChild(iframe);
          var doc = iframe.contentWindow.document;
          $(document).find("link").filter(function () {
            return $(this).attr("rel").toLowerCase() == "stylesheet";
          }).each(
            function () {
              doc.write('<link type="text/css" rel="stylesheet" href="'
                + $(this).attr("href") + '" >');
            });
          doc.write('<div class="' + $(ele).attr("class") + '">' + $(ele).html()
            + '</div>');
          doc.close();

          var frameWindow = iframe.contentWindow;
          frameWindow.close();
          frameWindow.focus();
          frameWindow.print();
        }
        var removePrintArea = function (id) {
          $("iframe#" + id).remove();
        };


        $("#btn-ks").on("click",function () {
          layer.open({
            type: 1
            ,title: '选择科室'
            ,closeBtn: false
            ,area: '400px;'
            ,shade: 0.8
            ,id: 'LAY_ks'
            ,btn: ['确定', '取消']
            ,btnAlign: 'c'
            ,content: $('#modal_ks')
            ,yes: function(index, layero){
              $('#sxks option').remove();
              $('#sxks').append('<option value=""></option>');
              $("input[name='chooseks']:checked").each(function() {
                $('#sxks').append('<option value="'+$(this).val()+'">'+$(this).attr("title")+'</option>');
              });
              form.render();
              layer.closeAll();
            }
          });
        })

        form.on('select(sxks)', function(data){
          page = 1;
          params.depNo = $('#sxks').val() || "";
          getSearchmanage(page);
          $("#btn-ch").removeClass("btnactive");
          $("#btn-fs").removeClass("btnactive")
        });

        /*初筛*/
        $("#btn-ch").on("click",function () {
          page = 1;
          params.screenState = params.screenState == "" ? 1 : "";
          getSearchmanage(page);
          if($("#btn-ch").hasClass("btnactive")){
            $("#btn-ch").removeClass("btnactive");
          }else{
            $("#btn-ch").addClass("btnactive");
          }
          console.log(params.screenState)
        })
        /*复筛*/
        $("#btn-fs").on("click",function () {
          page = 1;
          params.screenState = params.screenState == "" ? 2 : "";
          getSearchmanage(page);
          console.log(params.screenState)
          if($("#btn-fs").hasClass("btnactive")){
            $("#btn-fs").removeClass("btnactive");
          }else{
            $("#btn-fs").addClass("btnactive");
          }
        })

        /*获取筛选列表*/
        function getSearchmanage(page) {
          var param = "&startdatetime="+params.startdatetime
            +"&enddatetime="+params.enddatetime
            +"&depNo="+params.depNo
            +"&bedNo="+params.bedNo
            +"&userNo="+params.userNo
            +"&reviewerNo="+params.reviewerNo
            +"&clinicianNo="+params.clinicianNo
            +"&inHospitalState="+params.inHospitalState
            +"&screenState="+params.screenState
            +"&isRisk="+params.isRisk
            +"&reviewerResult="+params.reviewerResult
            +"&isFollo="+params.isFollo
            +"&page="+page
            +"&limit="+limit;
          http.post(httpRouter.searchmanage,param,function (res) {
            searchmanage(res);
          });
        }
        function searchmanage(data) {
          table.render({
            elem: '#tableContent'
            ,data:data.records
            ,limit:limit
            ,cols: [[
              {type: 'checkbox'}
              ,{field:'isFollow', title:'关注', width: 60, templet: '#checkboxTpl'}
              ,{field:'depName', title:'科室'}
              ,{field:'bedName', title:'床号', width: 80}
              ,{field:'clinicianName', title:'临床医生', width: 90}
              ,{field:'userName', title: '患者', width: 90}
              ,{field:'sex', title: '性别', width: 60 ,templet:'<span>{{d.sex == 1? "男" : "女"}}</span>'}
              ,{field:'age', title: '年龄', width: 60}
              ,{field:'inHospitalData', title: '入院日期'}
              ,{field:'searchResult', title: '初查结果',templet:'<span>{{d.searchResult == 1 ? "有风险" : "无风险"}}</span>'}
              ,{field:'searchDate', title: '筛查时间'}
              ,{field:'reviewerName', title: '复核人'}
              ,{field:'reviewerDate', title: '复核时间'}
              ,{field:'reviewerResult', title: '复核结果',templet:'<span>{{d.reviewerResult == 1 ? "有风险" : "无风险"}}</span>'}
              ,{field:'diagnosisResult', title: '营养诊疗建议'}
              ,{field:'lastTimeSearchDate', title: '上次筛查时间'}
              ,{field:'ThrsearchResult', title: '复筛结果',templet:'<span>{{d.searchResult == 1 ? "有风险" : "无风险"}}</span>'}
              ,{field:'screenState', title: '类型',templet:'<span>{{d.screenState == 1 ? "初筛" : "复筛"}}</span>'}
            ]]
          });



          $(".gzcheck").on("click",function () {
            var isFollow = 2;
            if($(this).is(':checked')){
              isFollow = 1
            }
            console.log(isFollow);
            var param={
              userNo:$(this).attr("data_userno") || "",
              isFollow:isFollow
            }
            http.get(httpRouter.payattention,param,function (res) {
              if(!res.success){

              }
            });

          });

          laypage.render({
            elem: 'tablePage'
            ,limit: limit
            ,count: parseInt(data.total)
            ,curr:page
            ,layout: [ 'prev', 'page', 'next', 'count', 'refresh']
            ,jump: function(obj, first){
              //obj包含了当前分页的所有参数，比如：
              //首次不执行
              if(!first){
                page = obj.curr;
                getSearchmanage(obj.curr);
                $("#btn-ch").removeClass("btnactive");
                $("#btn-fs").removeClass("btnactive")
              }

            }
          });
        }
        getSearchmanage(page);
        $("#btn-ch").removeClass("btnactive");
        $("#btn-fs").removeClass("btnactive")

        /*营养会诊*/
        function consultationofdoctors(userNo,depNo,bedNo) {
          var param = {
            currentDate:$("#hz-currentDate").val() || "",
            clinicianNo:$("#hz-clinicianNo").val() || "",
            userNo:userNo || "",
            depNo:depNo || "",
            bedNo:bedNo || "",
            NutritionalSymptom:$("#hz-NutritionalSymptom").text() || "",
            Remark:$("#hz-Remark").val() || ""
          }
          http.post(httpRouter.consultationofdoctors,param,function (res) {
            if(res.success){
              page = 1;
              getSearchmanage();
              $("#btn-ch").removeClass("btnactive");
              $("#btn-fs").removeClass("btnactive")
            }
          });
        }
        //发起营养会诊
        $('#btn-hz').on('click', function(){
          var checkStatus = table.checkStatus('tableContent'); //test即为基础参数id对应的值

          if(checkStatus.data.length <= 0){
            alert("请选择一条数据");
            return;
          }
          var user = checkStatus.data[0];
          $('#modal_hz form')[0].reset();

          $('#modal_hz').find("#hz-userNo").html(user.uerName || "");
          $('#modal_hz').find("#hz-depNo").html(user.depName || "");
          $('#modal_hz').find("#hz-bedNo").html(user.bedName || "");
          $('#modal_hz').find("#hz-NutritionalSymptom").html(user.searchResult == '1' ? "有风险" : "有风险");


          layer.open({
            type: 1
            ,title: '营养会诊' //不显示标题栏
            ,closeBtn: false
            ,area: '700px'
            ,shade: 0.8
            ,id: 'LAY_hz' //设定一个id，防止重复弹出
            ,btn: ['确定', '取消']
            ,btnAlign: 'c'
            ,content: $('#modal_hz')
            ,yes: function(index, layero){

              consultationofdoctors(user.userNo,user.depNo,user.bedName);
              layer.closeAll();
            }
          });

          laydate.render({
            elem: '#hz-currentDate'
            ,value: today
            ,isInitValue: true
          });



        });


        /*获取复核人列表*/
        function getReviewuserList() {
          http.get(httpRouter.reviewuserinfo,{},function (res) {
            $.each(res.records,function(index,obj){
              $('#reviewerNo').append('<option value="'+obj.userId+'">'+obj.userName+'</option>');
              $("#fhrlist").append('<input type="radio" name="fhr-reviewerNo" value="'+obj.userId+'" title="'+obj.userName+'">');
              form.render()
            });

          });
        }

        /*获取患者姓名列表*/
        function getUserList() {
          http.get(httpRouter.userinfo,{},function (res) {
            userList = res.records;
            /*$.each(res.records,function(index,obj){
              $('#userNo').append('<option value="'+obj.userId+'">'+obj.userName+'</option>');
              form.render()
            });*/

          });
        }
        /*获取科室列表*/
        function getDepList() {
          http.get(httpRouter.cnisdeplistinfo,{},function (res) {
            $.each(res.records,function(index,obj){
              $('#depNo').append('<option value="'+obj.Department_DBKey+'">'+obj.DepartmentName+'</option>');
              $("#kslist").append('<input type="checkbox" name="chooseks" lay-skin="primary" value="'+obj.Department_DBKey+'" title="'+obj.DepartmentName+'">');
              form.render()
            });
          });
        }

        /*获取床号列表*/
        function getBednoList(depNo) {
          var param = {
            Department_DBKey:depNo
          }
          http.get(httpRouter.bednolistinfo,param,function (res) {
            $.each(res.records,function(index,obj){
              $('#bedNo').append('<option value="'+obj.BedNumber_DBKey+'">'+obj.BedCode+'</option>');
              form.render()
            });

          });
        }
        /*获取临床医生列表*/
        function getClincianList() {
          http.get(httpRouter.clinicianinfo,{},function (res) {
            $.each(res.records,function(index,obj){
              $('#clinicianNo').append('<option value="'+obj.userId+'">'+obj.userName+'</option>');
              $("#hz-clinicianNo").append('<option value="'+obj.userId+'">'+obj.userName+'</option>');
              form.render()
            });

          });
        }


        $("#userName").on("keyup",function () {
          if($(this).val() == ""){
            return;
          }
          $(".user-list li").remove();
          $(".user-list").show();
          var reg = new RegExp($(this).val());
          $.each(userList,function (i,obj) {
            if(obj.userName.match(reg)){
              $(".user-list").append('<li data_id="'+obj.userId+'">'+obj.userName+'</li>')
            }
          })

          $(".user-list li").on("click",function () {

            $("#userNo").val($(this).attr("data_id"));
            $("#userName").val($(this).text());

            $(".user-list").hide();
          });

        });
        var userList = [];
        //更多
        $('#btn-more').on('click', function(){
          $('#modal_more form')[0].reset();
          layer.open({
            type: 1
            ,title: '更多筛查条件' //不显示标题栏
            ,closeBtn: false
            ,area: '700px'
            ,shade: 0.8
            ,id: 'LAY_more' //设定一个id，防止重复弹出
            ,btn: ['确定', '取消']
            ,btnAlign: 'c'
            ,content: $('#modal_more')
            ,yes: function(index, layero){
              params.startdatetime = $('#starttime').val() || "";
              params.enddatetime = $('#endtime').val() || "";
              params.depNo = $('#depNo').val() || "";
              params.bedNo = $('#bedNo').val() || "";
              params.userNo = $('#userNo').val() || "";
              params.reviewerNo = $('#reviewerNo').val() || "";
              params.clinicianNo = $('#clinicianNo').val() || "";
              params.inHospitalState = $('input[name="inHospitalState"]:checked').val() || "";
              params.screenState = $('input[name="screenState"]:checked').val() || "";
              params.isRisk = $('input[name="isRisk"]:checked').val() || "";
              params.reviewerResult = $('input[name="reviewerResult"]:checked').val() || "";
              params.isFollo = $('input[name="isFollo"]:checked').val() || "";
              page = 1;
              getSearchmanage(page);
              $("#btn-ch").removeClass("btnactive");
              $("#btn-fs").removeClass("btnactive")
              layer.closeAll();
            }

          });



        });
        laydate.render({
          elem: '#starttime'
        });
        laydate.render({
          elem: '#endtime'
        });
        getReviewuserList();
        getUserList();
        getDepList();
        getClincianList();
        form.on('select(depNo)', function(data){
          getBednoList(data.value);
        });


        //打印筛查结果
        $('#btn-print').on('click', function(){

          var checkStatus = table.checkStatus('tableContent');
          if(checkStatus.data.length <= 0){
            alert("请选择一条数据");
            return;
          }
          var userList = checkStatus.data
            ,listId = [];

          for (var i in userList) {
            listId.push(userList[i]["userNo"]);
          }
          var param = {
            userNoArray:JSON.stringify(listId)
          }
          http.post(httpRouter.printresult,param,function (res) {
            table.render({
              elem: '#printTable'
              ,data:res.records
              ,cols: [[
                {type:'numbers'}
                ,{field:'depName', title:'科室'}
                ,{field:'bedName', title:'床号', width: 80}
                ,{field:'clinicianName', title:'临床医生', width: 90}
                ,{field:'userName', title: '患者', width: 90}
                ,{field:'sex', title: '性别', width: 60 ,templet:'<span>{{d.sex == 1? "男" : "女"}}</span>'}
                ,{field:'age', title: '年龄', width: 60}
                ,{field:'searchResult', title: '筛查结果',templet:'<span>{{d.searchResult == 1 ? "有风险" : "无风险"}}</span>'}
                ,{field:'result', title: '风险'}
                ,{field:'searchDate', title: '筛查时间'}
                ,{field:'remarks', title: '备注'}
              ]]
            });


            layer.open({
              type: 1
              ,title: '打印筛查结果'
              ,closeBtn: false
              ,area: '900px;'
              ,shade: 0.8
              ,id: 'LAY_print'
              ,btn: ['打印', '取消']
              ,btnAlign: 'r'
              ,content: $('#modal_print')
              ,yes: function(index, layero){
                layer.closeAll();
                printPage($(layero).find("#printTable"));
              }
            });

          });


        });



        form.on('radio(fhr-reviewerResult)', function(data){
            if (data.value == 1){
              $("#readbox input").removeAttr('checked');
              $("#readbox textarea").val("");
              $("#readbox input").attr('disabled', true);
              $("#readbox textarea").attr('disabled', true);
              form.render();
            }else{
              $("#readbox input").removeAttr('disabled');
              $("#readbox textarea").removeAttr('disabled');
              form.render();
            }

        });

        //选择复核人
        $('#btn-fh').on('click', function(){

          var checkStatus = table.checkStatus('tableContent'); //test即为基础参数id对应的值
          if(checkStatus.data.length <= 0){
            alert("请选择一条数据");
            return;
          }
          var user = checkStatus.data[0];

          $('#modal_fhr form')[0].reset();
          layer.open({
            type: 1
            ,title: '复核'
            ,closeBtn: false
            ,area: '500px;'
            ,shade: 0.8
            ,id: 'LAY_print'
            ,btn: ['确定', '取消']
            ,btnAlign: 'c'
            ,content: $('#modal_fhr')
            ,yes: function(index, layero){

              check(user.userNo);
              layer.closeAll();
            }
          });


        });

        function check(userNo) {
          var AbCauseTwos = []
          $("input[name='fhr-AbCauseTwo']:checked").each(function() {
            AbCauseTwos.push($(this).val())
          });
          var param = {
            userNo:userNo,
            reviewerNo:$('input[name="fhr-reviewerNo"]:checked').val() || "",
            reviewerResult:$('input[name="fhr-reviewerResult"]').val() || "",
            AbCauseOne:$('input[name="fhr-AbCauseOne"]').val() || "",
            AbCauseTwo:JSON.stringify(AbCauseTwos),
            AbCauseOther:$("#fhr-AbCauseOther").val() || "",
          }
          http.post(httpRouter.checkrisk,param,function (res) {
            if(res.success){
              page = 1;
              getSearchmanage(page);
              $("#btn-ch").removeClass("btnactive");
              $("#btn-fs").removeClass("btnactive")
            }
          });
        }



      });
    })

  </script>


</body>
</html>

<div class="modal" id="modal_more">
  <form class="modal-body layui-form" action="">
    <div class="layui-form-item">
      <div class="layui-inline">
        <label class="layui-form-label">开始日期</label>
        <div class="layui-input-inline">
          <input type="text" class="layui-input" id="starttime" placeholder="yyyy-MM-dd">
        </div>
      </div>
      <div class="layui-inline">
        <label class="layui-form-label">结束日期</label>
        <div class="layui-input-inline">
          <input type="text" class="layui-input" id="endtime" placeholder="yyyy-MM-dd">
        </div>
      </div>

      <div class="layui-inline">
        <label class="layui-form-label">复核人</label>
        <div class="layui-input-inline">
          <select id="reviewerNo" lay-filter="reviewerNo">
            <option value="">选择复核人</option>
          </select>
        </div>
      </div>
      <div class="layui-inline">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-inline">
          <!--<select id="userNo" lay-filter="userNo">
            <option value="">选择姓名</option>
          </select>-->
          <input type="text"  id="userNo" placeholder="请输入姓名"  class="layui-input" style="display: none">
          <input type="text"  id="userName" placeholder="请输入姓名"  class="layui-input">
          <ul class="user-list"></ul>
        </div>
      </div>
      <div class="layui-inline">
        <label class="layui-form-label">科室</label>
        <div class="layui-input-inline">
          <select id="depNo" lay-filter="depNo">
            <option value="">选择科室</option>
          </select>
        </div>
      </div>
      <div class="layui-inline">
        <label class="layui-form-label">床号</label>
        <div class="layui-input-inline">
          <select  id="bedNo" lay-filter="bedNo">
            <option value="">选择床号</option>
          </select>


        </div>
      </div>
   <!--   <div class="layui-inline">
        <label class="layui-form-label">住院号</label>
        <div class="layui-input-inline">
          <select name="modules" lay-verify="required" lay-search="">
            <option value="">选择住院号</option>
            <option value="1">layer</option>
            <option value="2">form</option>
            <option value="3">layim</option>
            <option value="4">element</option>
          </select>
        </div>
      </div>-->

      <div class="layui-inline">
        <label class="layui-form-label">临床医生</label>
        <div class="layui-input-inline">
          <select id="clinicianNo" lay-filter="clinicianNo">
            <option value="">选择临床医生</option>
          </select>
        </div>
      </div>
    </div>
    <div class="layui-form-item line"></div>
    <div class="layui-form-item">
      <div class="layui-input-block">
        <input type="radio" name="inHospitalState" value="1" title="在院">
        <input type="radio" name="inHospitalState" value="0" title="出院">
        <input type="radio" name="inHospitalState" value="9" title="全部">
      </div>
      <div class="layui-input-block">
        <input type="radio" name="screenState" value="1" title="初筛">
        <input type="radio" name="screenState" value="2" title="复筛">
        <input type="radio" name="screenState" value="9" title="全部">
      </div>
      <div class="layui-input-block">
        <input type="radio" name="isRisk" value="1" title="有风险">
        <input type="radio" name="isRisk" value="0" title="无风险">
        <input type="radio" name="isRisk" value="9" title="全部">
      </div>
      <div class="layui-input-block">
        <input type="radio" name="reviewerResult" value="1" title="复核正常">
        <input type="radio" name="reviewerResult" value="0" title="复核异常">
        <input type="radio" name="reviewerResult" value="9" title="全部">
      </div>
      <div class="layui-input-block">
        <input type="radio" name="isFollow" value="1" title="关注患者">
        <input type="radio" name="isFollow" value="2" title="全部患者">
      </div>
    </div>

  </form>
</div>


<div class="modal" id="modal_hz">
  <form class="modal-body layui-form">
    <div class="layui-form-item">
      <div class="layui-inline">
        <label class="layui-form-label">会诊时间</label>
        <div class="layui-input-inline">
          <input type="text" class="layui-input" id="hz-currentDate" placeholder="yyyy-MM-dd">
        </div>
      </div>
      <div class="layui-inline">
        <label class="layui-form-label">会诊发起人</label>
        <div class="layui-input-inline">
          <select name="modules" lay-verify="required" id="hz-clinicianNo">
            <option value="">直接选择或搜索选择</option>
          </select>
        </div>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">患者姓名</label>
      <div class="layui-input-block">
        <div class="layui-form-mid"><span id="hz-userNo"></span></div>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">科室</label>
      <div class="layui-input-block">
        <div class="layui-form-mid"><span id="hz-depNo"></span></div>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">床号</label>
      <div class="layui-input-block">
        <div class="layui-form-mid"><span id="hz-bedNo"></span></div>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">营养风险筛查结果</label>
      <div class="layui-input-block">
        <div class="layui-form-mid"><span id="hz-NutritionalSymptom"></span></div>
      </div>
    </div>
    <div class="layui-form-item">

      <div class="layui-input-block">
        <textarea  placeholder="其他" id="hz-Remark" class="layui-textarea"></textarea>
      </div>
    </div>
  </form>
</div>
<div class="modal" id="modal_ks">
  <form class="modal-body layui-form">
    <div class="layui-form-item" id="kslist">

    </div>
  </form>

</div>
<div class="modal" id="modal_sxtj">
  <form class="modal-body layui-form" action="">
    <div class="layui-form-item">
      <div class="layui-inline">
        <label class="layui-form-label">验证手机</label>
        <div class="layui-input-inline">
          <select name="modules">
            <option value="">直接选择或搜索选择</option>
            <option value="1">layer</option>
            <option value="2">form</option>
            <option value="3">layim</option>
            <option value="4">element</option>
          </select>
        </div>
      </div>
      <div class="layui-inline">
        <label class="layui-form-label">验证邮箱</label>
        <div class="layui-input-inline">
          <select name="modules" lay-verify="required" lay-search="">
            <option value="">直接选择或搜索选择</option>
            <option value="1">layer</option>
            <option value="2">form</option>
            <option value="3">layim</option>
            <option value="4">element</option>
          </select>
        </div>
      </div>
    </div>
    <div class="layui-form-item">
      <div class="layui-inline">
        <label class="layui-form-label">验证手机</label>
        <div class="layui-input-inline">
          <select name="modules" lay-verify="required" lay-search="">
            <option value="">直接选择或搜索选择</option>
            <option value="1">layer</option>
            <option value="2">form</option>
            <option value="3">layim</option>
            <option value="4">element</option>
          </select>
        </div>
      </div>
      <div class="layui-inline">
        <label class="layui-form-label">验证邮箱</label>
        <div class="layui-input-inline">
          <select name="modules" lay-verify="required" lay-search="">
            <option value="">直接选择或搜索选择</option>
            <option value="1">layer</option>
            <option value="2">form</option>
            <option value="3">layim</option>
            <option value="4">element</option>
          </select>
        </div>
      </div>
    </div>
  </form>
</div>
<div class="modal" id="modal_print">
  <div class="modal-body">
    <div id="print-container" class="pt">
      <table id="printTable" lay-filter="printTable"></table>
    </div>
  </div>
</div>
<div class="modal" id="modal_fhr">
  <form class="modal-body layui-form">

    <div class="layui-form-item">
      <label>复核人</label>
      <div id="fhrlist"></div>
    </div>
    <div class="layui-form-item">
      <label>复核结果</label>
      <div>
        <input type="radio" name="fhr-reviewerResult" value="1" title="正常" lay-filter="fhr-reviewerResult">
        <input type="radio" name="fhr-reviewerResult" value="0" title="异常" lay-filter="fhr-reviewerResult">
      </div>
    </div>
    <div class="dashed-row" pane="" id="readbox">
      <label>异常原因</label>
      <div class="layui-form-item">
        <input type="radio" name="fhr-AbCauseOne" value="1" title="有风险">
        <input type="radio" name="fhr-AbCauseOne" value="0" title="无风险">
      </div>
      <div class="layui-form-item">
        <input type="checkbox" name="fhr-AbCauseTwo" lay-skin="primary" value="症状不符" title="症状不符">
        <input type="checkbox" name="fhr-AbCauseTwo" lay-skin="primary" value="BMI不准" title="BMI不准">
        <input type="checkbox" name="fhr-AbCauseTwo" lay-skin="primary" value="实验室结果不准确" title="实验室结果不准确">
      </div>
      <div class="layui-form-item">
        <textarea  placeholder="其他" id="fhr-AbCauseOther" class="layui-textarea"></textarea>
      </div>
    </div>

  </form>

</div>
<div class="modal" id="modal_fhjg">
  <form class="modal-body layui-form" action="">
    <div class="layui-form-item ">
      <textarea placeholder="请输入内容" class="layui-textarea"></textarea>
    </div>
  </form>
</div>



